import query from '@dfeidao/atom-nodejs/db/query';
import { IncomingHttpHeaders } from 'http';
import { productid, systemid } from '../../atom/config';

// tslint:disable-next-line:no-empty-interface
interface Message {
}
export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const q = query(action_id, session_id, systemid);
	// 资产分类
	q.prepare('asset_classification', ['asset_classification_no', 'asset_classification_name'], { productid }, 200, 1, [], []);
	// 项目名称
	q.prepare('company_project', ['project_name', 'project_no'], { productid }, 200, 1, [], []);
	const [dt1, dt2] = await q.exec();
	return { dt1, dt2 };
}
